From 3f5d4623051e8c499730880ab6c80d120aec9f44 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 19 Oct 2014 22:42:49 -0400 Subject: [PATCH] GtkToggleButton: Move nonexported API to a private header This is our standard practice nowadays. --- gtk/Makefile.am | 1 + gtk/gtkradiobutton.c | 1 + gtk/gtktogglebutton.c | 1 + gtk/gtktogglebutton.h | 3 --- gtk/gtktogglebuttonprivate.h | 40 ++++++++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 gtk/gtktogglebuttonprivate.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 706bb905aa..8f986091a5 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -669,6 +669,7 @@ gtk_private_h_sources = \ gtkthemingbackgroundprivate.h \ deprecated/gtkthemingengineprivate.h \ gtktrashmonitor.h \ + gtktogglebuttonprivate.h \ gtktoolbarprivate.h \ gtktoolpaletteprivate.h \ gtktreedatalist.h \ diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 9bfc83c162..4e98dd90a2 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -27,6 +27,7 @@ #include "gtkradiobutton.h" #include "gtkbuttonprivate.h" +#include "gtktogglebuttonprivate.h" #include "gtklabel.h" #include "gtkmarshalers.h" #include "gtkprivate.h" diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index d766f19ca3..a808d184c6 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -27,6 +27,7 @@ #include "gtktogglebutton.h" #include "gtkbuttonprivate.h" +#include "gtktogglebuttonprivate.h" #include "gtklabel.h" #include "gtkmain.h" #include "gtkmarshalers.h" diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h index 67a02f1d66..692aed3e2b 100644 --- a/gtk/gtktogglebutton.h +++ b/gtk/gtktogglebutton.h @@ -95,9 +95,6 @@ void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, GDK_AVAILABLE_IN_ALL gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); -void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button, - gboolean is_active); - G_END_DECLS diff --git a/gtk/gtktogglebuttonprivate.h b/gtk/gtktogglebuttonprivate.h new file mode 100644 index 0000000000..f487b54ead --- /dev/null +++ b/gtk/gtktogglebuttonprivate.h @@ -0,0 +1,40 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2014 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#ifndef __GTK_TOGGLE_BUTTON_PRIVATE_H__ +#define __GTK_TOGGLE_BUTTON_PRIVATE_H__ + + +#include + + +G_BEGIN_DECLS + +void _gtk_toggle_button_set_active (GtkToggleButton *toggle_button, + gboolean is_active); + +G_END_DECLS + + +#endif /* __GTK_TOGGLE_BUTTON_PRIVATE_H__ */ -- 2.30.2